@layout("/common/_container.html",{js:["/assets/other/updateConfig.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">小程序配置</span>
</div>
<blockquote class="layui-elem-quote">
    app版本更新配置
</blockquote>
<div class="layui-card">
    <blockquote class="layui-elem-quote layui-quote-nm online-discount">
        <form class="layui-form" id="form" lay-filter="form">
            <div class="layui-card-body">

                <div class="layui-form-item">
                    <label class="layui-form-label l-lab-text">当前版本号</label>
                    <div class="layui-input-block">
                        <input type="text" name="lastVersion" oninput="this.value=this.value.replace(/[^\d\.]/g,'')" lay-verify="pass" placeholder="lastVersion" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline layui-col-md12">
                    <label class="layui-form-label">是否强制更新 </label>
                    <div class="layui-input-block">
                        <input type="radio" name="forceUpdate" value="false" title="不强制" checked>
                        <input type="radio" name="forceUpdate" value="true" title="强制">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label l-lab-text">跳转连接</label>
                    <div class="layui-input-block">
                        <input type="text" name="downloadUrl" placeholder="跳转连接" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <fieldset>
                    <legend>本次更新内容</legend>
                    <div class="layui-form-item">
                        <label class="layui-form-label l-lab-text">更新内容</label>
                        <div class="layui-input-block">
                            <input type="text" name="changes" lay-verify="pass" placeholder="更新内容" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <button type="button" onclick="creatChanges()" style="margin-left: 20%" class="btn-primary layui-btn layui-btn-sm" lay-submit>&emsp;新增&emsp;</button>
                </fieldset>
                <div style="margin-top: 10px">
                    <button type="button" style="margin-left: 40%" class="btn-primary layui-btn layui-btn-sm" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
                </div>
            </div>
        </form>
    </blockquote>
</div>
<style>
    .layui-input-block > input {
        width: 500px;
    }

    label.layui-form-label.l-lab-text {
        width: 150px;
        text-align: center;
        background: #eee;
        box-sizing: border-box;
        border: solid 1px #ddd;
        height: 30px;
    }
</style>
@}